* {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
html,
body {
  height: 100%;
}
.chat-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #262626;
}
.chat-inner {
  width: 1000px;
  height: 600px;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px 2px rgb(0 0 0 / 60%);
}
/*menu*/
.chat-inner .menu-box {
  flex-basis: 70px;
  background: #303942;
}
.menu-box .item {
  height: 55px;
  line-height: 55px;
  text-align: center;
  color: #ffffff;
  font-size: 14px;
  border-left: 4px solid #303942;
  cursor: pointer;
}
.menu-box .item.active {
  border-left-color: #7bff59;
  background: #363f48;
}
.menu-box .item:first-child {
  margin-top: 70px;
}
/*left*/
.chat-inner .left-box {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  background: #363f48;
}
.left-box .search-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  border-bottom: 1px solid #242831;
}
.left-box .search-box input[type="text"] {
  width: 80%;
  height: 30px;
  padding: 0 10px;
  box-sizing: border-box;
  line-height: 30px;
  border-radius: 15px;
  border: none;
  box-shadow: 0 1px 4px 0 rgb(0 0 0 / 20%) inset;
  background-color: #303942;
  color: #ffffff;
  outline: none;
}
.left-box .list-box {
  height: 0;
  flex: 1;
  overflow-y: auto;
}
.left-box .list-box::-webkit-scrollbar {
  width: 4px;
}
.left-box .list-box::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.4);
}
.left-box .list-box::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}
.left-box .list-box .item {
  padding: 16px;
  display: flex;
  justify-content: flex-start;
  cursor: pointer;
}
.left-box .list-box .item:hover{
  background-color: #3e4750;
}
.left-box .list-box .item.active {
  background-color: #444d56;
}
.left-box .list-box .photo img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.left-box .list-box .item .info {
  margin-left: 12px;
  flex: 1 0 auto;
  width: 0;
}
.left-box .list-box .item .name {
  font-size: 14px;
  color: #ffffff;
}
.left-box .list-box .item .last-talk {
  font-size: 10px;
  color: #7c8992;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/*center*/
.chat-inner .center-box {
  flex: 6 1 auto;
  width: 0;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  border: 1px solid #e0dfdd;
  background-color: #f7fcff;
}
.center-box .head-info {
  height: 70px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 40px;
  border-bottom: 1px solid #e0dfdd;
}
.center-box .head-info .name {
  font-size: 16px;
  font-weight: bold;
  color: #1b2429;
}
.center-box .head-info .status {
  margin-left: 20px;
  font-size: 12px;
  color: #adbdca;
}
.center-box .head-info .status::before {
  display: inline-block;
  margin-right: 6px;
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #6cfe45;
}
.center-box .show-talk-content {
  flex: 1;
  height: 0;
  overflow-y: auto;
  background-color: #eff3f6;
  border-bottom: 1px solid #e0dfdd;
}
.center-box .show-talk-content::-webkit-scrollbar {
  width: 4px;
}
.center-box .show-talk-content::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.4);
}
.center-box .show-talk-content::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}
.show-talk-content > ul {
  display: flex;
  flex-direction: column;
}
.show-talk-content li.item {
  display: flex;
  flex: 1;
  padding: 10px 20px;
  font-size: 14px;
}
.show-talk-content li.item.me {
  flex-direction: row-reverse;
}
.show-talk-content .photo img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.show-talk-content li.item.you .info {
  margin-left: 16px;
}
.show-talk-content li.item.me .info {
  margin-right: 16px;
}
.show-talk-content li.item .name {
  font-size: 12px;
  color: #adbdca;
}
.show-talk-content li.item.me .name {
  text-align: right;
}
.show-talk-content li.item .content {
  max-width: 300px;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  color: #1b2429;
  background-color: #ffffff;
}
.show-talk-content li.item.me .content {
  background-color: #55d58b;
  color: #ffffff;
}

.center-box .send-info {
  padding: 4px 20px;
  box-sizing: border-box;
  height: 70px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: #f7fcff;
}
.center-box .send-info textarea {
  padding: 4px;
  box-sizing: border-box;
  flex: 1;
  width: 0;
  height: 60px;
  background-color: #eff3f6;
  border: 1px solid #e3e1e2;
  outline: none;
}
.center-box .send-info button {
  width: 60px;
  height: 30px;
  margin-left: 10px;
  border: none;
  background-color: #52db8d;
  border-radius: 2px;
  color: #ffffff;
  cursor: pointer;
}
.center-box .send-info button:hover{
  background-color: #42c37a;
}
/*right*/
.chat-inner .right-box {
  flex: 0 0 190px;
  background-color: #ffffff;
}
.right-box .user-photo {
  padding-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.right-box .user-photo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}
.right-box .user-name {
  padding-top: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  color: #1b2429;
}
.right-box .user-occupation {
  font-size: 14px;
  text-align: center;
  color: #adbdca;
  font-style: italic;
}
.right-box .user-info {
  padding: 20px;
  text-align: left;
  font-size: 12px;
  color: #adbdca;
}
.right-box .user-info .item {
  padding: 4px 0;
}
